using Google.ProtocolBuffers;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class BindOpMobileRequest : GeneratedMessageLite<BindOpMobileRequest, BindOpMobileRequest.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<BindOpMobileRequest, BindOpMobileRequest.Builder>
		{
			private bool resultIsReadOnly;
			private BindOpMobileRequest result;
			protected override BindOpMobileRequest.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override BindOpMobileRequest MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override BindOpMobileRequest DefaultInstanceForType
			{
				get
				{
					return BindOpMobileRequest.DefaultInstance;
				}
			}
			public BaseRequest BaseRequest
			{
				get
				{
					return this.result.BaseRequest;
				}
				set
				{
					this.SetBaseRequest(value);
				}
			}
			public string UserName
			{
				get
				{
					return this.result.UserName;
				}
				set
				{
					this.SetUserName(value);
				}
			}
			public string Mobile
			{
				get
				{
					return this.result.Mobile;
				}
				set
				{
					this.SetMobile(value);
				}
			}
			public int Opcode
			{
				get
				{
					return this.result.Opcode;
				}
				set
				{
					this.SetOpcode(value);
				}
			}
			public string Verifycode
			{
				get
				{
					return this.result.Verifycode;
				}
				set
				{
					this.SetVerifycode(value);
				}
			}
			public int DialFlag
			{
				get
				{
					return this.result.DialFlag;
				}
				set
				{
					this.SetDialFlag(value);
				}
			}
			public string DialLang
			{
				get
				{
					return this.result.DialLang;
				}
				set
				{
					this.SetDialLang(value);
				}
			}
			public Builder()
			{
				this.result = BindOpMobileRequest.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(BindOpMobileRequest cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private BindOpMobileRequest PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					BindOpMobileRequest other = this.result;
					this.result = new BindOpMobileRequest();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override BindOpMobileRequest.Builder Clear()
			{
				this.result = BindOpMobileRequest.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override BindOpMobileRequest.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new BindOpMobileRequest.Builder(this.result);
				}
				return new BindOpMobileRequest.Builder().MergeFrom(this.result);
			}
			public override BindOpMobileRequest BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override BindOpMobileRequest.Builder MergeFrom(IMessageLite other)
			{
				if (other is BindOpMobileRequest)
				{
					return this.MergeFrom((BindOpMobileRequest)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override BindOpMobileRequest.Builder MergeFrom(BindOpMobileRequest other)
			{
				return this;
			}
			public override BindOpMobileRequest.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override BindOpMobileRequest.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(BindOpMobileRequest._bindOpMobileRequestFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = BindOpMobileRequest._bindOpMobileRequestFieldTags[num2];
					}
					uint num3 = num;
					if (num3 <= 26u)
					{
						if (num3 <= 10u)
						{
							if (num3 == 0u)
							{
								throw InvalidProtocolBufferException.InvalidTag();
							}
							if (num3 == 10u)
							{
								BaseRequest.Builder builder = BaseRequest.CreateBuilder();
								if (this.result.hasBaseRequest)
								{
									builder.MergeFrom(this.BaseRequest);
								}
								input.ReadMessage(builder, extensionRegistry);
								this.BaseRequest = builder.BuildPartial();
								continue;
							}
						}
						else
						{
							if (num3 == 18u)
							{
								this.result.hasUserName = input.ReadString(ref this.result.userName_);
								continue;
							}
							if (num3 == 26u)
							{
								this.result.hasMobile = input.ReadString(ref this.result.mobile_);
								continue;
							}
						}
					}
					else
					{
						if (num3 <= 42u)
						{
							if (num3 == 32u)
							{
								this.result.hasOpcode = input.ReadInt32(ref this.result.opcode_);
								continue;
							}
							if (num3 == 42u)
							{
								this.result.hasVerifycode = input.ReadString(ref this.result.verifycode_);
								continue;
							}
						}
						else
						{
							if (num3 == 48u)
							{
								this.result.hasDialFlag = input.ReadInt32(ref this.result.dialFlag_);
								continue;
							}
							if (num3 == 58u)
							{
								this.result.hasDialLang = input.ReadString(ref this.result.dialLang_);
								continue;
							}
						}
					}
					if (WireFormat.IsEndGroupTag(num))
					{
						return this;
					}
					this.ParseUnknownField(input, extensionRegistry, num, text);
				}
				return this;
			}
			public BindOpMobileRequest.Builder SetBaseRequest(BaseRequest value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasBaseRequest = true;
				this.result.baseRequest_ = value;
				return this;
			}
			public BindOpMobileRequest.Builder SetBaseRequest(BaseRequest.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasBaseRequest = true;
				this.result.baseRequest_ = builderForValue.Build();
				return this;
			}
			public BindOpMobileRequest.Builder MergeBaseRequest(BaseRequest value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasBaseRequest && this.result.baseRequest_ != BaseRequest.DefaultInstance)
				{
					this.result.baseRequest_ = BaseRequest.CreateBuilder(this.result.baseRequest_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.baseRequest_ = value;
				}
				this.result.hasBaseRequest = true;
				return this;
			}
			public BindOpMobileRequest.Builder ClearBaseRequest()
			{
				this.PrepareBuilder();
				this.result.hasBaseRequest = false;
				this.result.baseRequest_ = null;
				return this;
			}
			public BindOpMobileRequest.Builder SetUserName(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasUserName = true;
				this.result.userName_ = value;
				return this;
			}
			public BindOpMobileRequest.Builder ClearUserName()
			{
				this.PrepareBuilder();
				this.result.hasUserName = false;
				this.result.userName_ = "";
				return this;
			}
			public BindOpMobileRequest.Builder SetMobile(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasMobile = true;
				this.result.mobile_ = value;
				return this;
			}
			public BindOpMobileRequest.Builder ClearMobile()
			{
				this.PrepareBuilder();
				this.result.hasMobile = false;
				this.result.mobile_ = "";
				return this;
			}
			public BindOpMobileRequest.Builder SetOpcode(int value)
			{
				this.PrepareBuilder();
				this.result.hasOpcode = true;
				this.result.opcode_ = value;
				return this;
			}
			public BindOpMobileRequest.Builder ClearOpcode()
			{
				this.PrepareBuilder();
				this.result.hasOpcode = false;
				this.result.opcode_ = 0;
				return this;
			}
			public BindOpMobileRequest.Builder SetVerifycode(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasVerifycode = true;
				this.result.verifycode_ = value;
				return this;
			}
			public BindOpMobileRequest.Builder ClearVerifycode()
			{
				this.PrepareBuilder();
				this.result.hasVerifycode = false;
				this.result.verifycode_ = "";
				return this;
			}
			public BindOpMobileRequest.Builder SetDialFlag(int value)
			{
				this.PrepareBuilder();
				this.result.hasDialFlag = true;
				this.result.dialFlag_ = value;
				return this;
			}
			public BindOpMobileRequest.Builder ClearDialFlag()
			{
				this.PrepareBuilder();
				this.result.hasDialFlag = false;
				this.result.dialFlag_ = 0;
				return this;
			}
			public BindOpMobileRequest.Builder SetDialLang(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasDialLang = true;
				this.result.dialLang_ = value;
				return this;
			}
			public BindOpMobileRequest.Builder ClearDialLang()
			{
				this.PrepareBuilder();
				this.result.hasDialLang = false;
				this.result.dialLang_ = "";
				return this;
			}
		}
		public const int BaseRequestFieldNumber = 1;
		public const int UserNameFieldNumber = 2;
		public const int MobileFieldNumber = 3;
		public const int OpcodeFieldNumber = 4;
		public const int VerifycodeFieldNumber = 5;
		public const int DialFlagFieldNumber = 6;
		public const int DialLangFieldNumber = 7;
		private static readonly BindOpMobileRequest defaultInstance;
		private static readonly string[] _bindOpMobileRequestFieldNames;
		private static readonly uint[] _bindOpMobileRequestFieldTags;
		private bool hasBaseRequest;
		private BaseRequest baseRequest_;
		private bool hasUserName;
		private string userName_ = "";
		private bool hasMobile;
		private string mobile_ = "";
		private bool hasOpcode;
		private int opcode_;
		private bool hasVerifycode;
		private string verifycode_ = "";
		private bool hasDialFlag;
		private int dialFlag_;
		private bool hasDialLang;
		private string dialLang_ = "";
		private int memoizedSerializedSize = -1;
		public static BindOpMobileRequest DefaultInstance
		{
			get
			{
				return BindOpMobileRequest.defaultInstance;
			}
		}
		public override BindOpMobileRequest DefaultInstanceForType
		{
			get
			{
				return BindOpMobileRequest.DefaultInstance;
			}
		}
		protected override BindOpMobileRequest ThisMessage
		{
			get
			{
				return this;
			}
		}
		public BaseRequest BaseRequest
		{
			get
			{
				return this.baseRequest_ ?? BaseRequest.DefaultInstance;
			}
		}
		public string UserName
		{
			get
			{
				return this.userName_;
			}
		}
		public string Mobile
		{
			get
			{
				return this.mobile_;
			}
		}
		public int Opcode
		{
			get
			{
				return this.opcode_;
			}
		}
		public string Verifycode
		{
			get
			{
				return this.verifycode_;
			}
		}
		public int DialFlag
		{
			get
			{
				return this.dialFlag_;
			}
		}
		public string DialLang
		{
			get
			{
				return this.dialLang_;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasBaseRequest && this.hasOpcode && this.BaseRequest.IsInitialized;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasBaseRequest)
				{
					num += CodedOutputStream.ComputeMessageSize(1, this.BaseRequest);
				}
				if (this.hasUserName)
				{
					num += CodedOutputStream.ComputeStringSize(2, this.UserName);
				}
				if (this.hasMobile)
				{
					num += CodedOutputStream.ComputeStringSize(3, this.Mobile);
				}
				if (this.hasOpcode)
				{
					num += CodedOutputStream.ComputeInt32Size(4, this.Opcode);
				}
				if (this.hasVerifycode)
				{
					num += CodedOutputStream.ComputeStringSize(5, this.Verifycode);
				}
				if (this.hasDialFlag)
				{
					num += CodedOutputStream.ComputeInt32Size(6, this.DialFlag);
				}
				if (this.hasDialLang)
				{
					num += CodedOutputStream.ComputeStringSize(7, this.DialLang);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private BindOpMobileRequest()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] bindOpMobileRequestFieldNames = BindOpMobileRequest._bindOpMobileRequestFieldNames;
			if (this.hasBaseRequest)
			{
				output.WriteMessage(1, bindOpMobileRequestFieldNames[0], this.BaseRequest);
			}
			if (this.hasUserName)
			{
				output.WriteString(2, bindOpMobileRequestFieldNames[5], this.UserName);
			}
			if (this.hasMobile)
			{
				output.WriteString(3, bindOpMobileRequestFieldNames[3], this.Mobile);
			}
			if (this.hasOpcode)
			{
				output.WriteInt32(4, bindOpMobileRequestFieldNames[4], this.Opcode);
			}
			if (this.hasVerifycode)
			{
				output.WriteString(5, bindOpMobileRequestFieldNames[6], this.Verifycode);
			}
			if (this.hasDialFlag)
			{
				output.WriteInt32(6, bindOpMobileRequestFieldNames[1], this.DialFlag);
			}
			if (this.hasDialLang)
			{
				output.WriteString(7, bindOpMobileRequestFieldNames[2], this.DialLang);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasBaseRequest)
			{
				num ^= this.baseRequest_.GetHashCode();
			}
			if (this.hasUserName)
			{
				num ^= this.userName_.GetHashCode();
			}
			if (this.hasMobile)
			{
				num ^= this.mobile_.GetHashCode();
			}
			if (this.hasOpcode)
			{
				num ^= this.opcode_.GetHashCode();
			}
			if (this.hasVerifycode)
			{
				num ^= this.verifycode_.GetHashCode();
			}
			if (this.hasDialFlag)
			{
				num ^= this.dialFlag_.GetHashCode();
			}
			if (this.hasDialLang)
			{
				num ^= this.dialLang_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object value)
		{
			BindOpMobileRequest bindOpMobileRequest = value as BindOpMobileRequest;
			return bindOpMobileRequest != null && (this.hasBaseRequest == bindOpMobileRequest.hasBaseRequest && (!this.hasBaseRequest || this.baseRequest_.Equals(bindOpMobileRequest.baseRequest_))) && (this.hasUserName == bindOpMobileRequest.hasUserName && (!this.hasUserName || this.userName_.Equals(bindOpMobileRequest.userName_))) && (this.hasMobile == bindOpMobileRequest.hasMobile && (!this.hasMobile || this.mobile_.Equals(bindOpMobileRequest.mobile_))) && (this.hasOpcode == bindOpMobileRequest.hasOpcode && (!this.hasOpcode || this.opcode_.Equals(bindOpMobileRequest.opcode_))) && (this.hasVerifycode == bindOpMobileRequest.hasVerifycode && (!this.hasVerifycode || this.verifycode_.Equals(bindOpMobileRequest.verifycode_))) && (this.hasDialFlag == bindOpMobileRequest.hasDialFlag && (!this.hasDialFlag || this.dialFlag_.Equals(bindOpMobileRequest.dialFlag_))) && (this.hasDialLang == bindOpMobileRequest.hasDialLang && (!this.hasDialLang || this.dialLang_.Equals(bindOpMobileRequest.dialLang_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<BindOpMobileRequest, BindOpMobileRequest.Builder>.PrintField("BaseRequest", this.hasBaseRequest, this.baseRequest_, writer);
			GeneratedMessageLite<BindOpMobileRequest, BindOpMobileRequest.Builder>.PrintField("UserName", this.hasUserName, this.userName_, writer);
			GeneratedMessageLite<BindOpMobileRequest, BindOpMobileRequest.Builder>.PrintField("Mobile", this.hasMobile, this.mobile_, writer);
			GeneratedMessageLite<BindOpMobileRequest, BindOpMobileRequest.Builder>.PrintField("Opcode", this.hasOpcode, this.opcode_, writer);
			GeneratedMessageLite<BindOpMobileRequest, BindOpMobileRequest.Builder>.PrintField("Verifycode", this.hasVerifycode, this.verifycode_, writer);
			GeneratedMessageLite<BindOpMobileRequest, BindOpMobileRequest.Builder>.PrintField("DialFlag", this.hasDialFlag, this.dialFlag_, writer);
			GeneratedMessageLite<BindOpMobileRequest, BindOpMobileRequest.Builder>.PrintField("DialLang", this.hasDialLang, this.dialLang_, writer);
		}
		public static BindOpMobileRequest ParseFrom(byte[] data)
		{
			return BindOpMobileRequest.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private BindOpMobileRequest MakeReadOnly()
		{
			return this;
		}
		public static BindOpMobileRequest.Builder CreateBuilder()
		{
			return new BindOpMobileRequest.Builder();
		}
		public override BindOpMobileRequest.Builder ToBuilder()
		{
			return BindOpMobileRequest.CreateBuilder(this);
		}
		public override BindOpMobileRequest.Builder CreateBuilderForType()
		{
			return new BindOpMobileRequest.Builder();
		}
		public static BindOpMobileRequest.Builder CreateBuilder(BindOpMobileRequest prototype)
		{
			return new BindOpMobileRequest.Builder(prototype);
		}
		static BindOpMobileRequest()
		{
			BindOpMobileRequest.defaultInstance = new BindOpMobileRequest().MakeReadOnly();
			BindOpMobileRequest._bindOpMobileRequestFieldNames = new string[]
			{
				"BaseRequest",
				"DialFlag",
				"DialLang",
				"Mobile",
				"Opcode",
				"UserName",
				"Verifycode"
			};
			BindOpMobileRequest._bindOpMobileRequestFieldTags = new uint[]
			{
				10u,
				48u,
				58u,
				26u,
				32u,
				18u,
				42u
			};
			object.ReferenceEquals(micromsg.Proto.BindOpMobileRequest.Descriptor, null);
		}
	}
}
